package newui.bean;

import java.io.Serializable;

/**
 * Created by lex on 2017/8/2.
 */

public class TopTeam implements Serializable {
    private String teamId;
    private long createTime;
    private String teamName;

    @Override
    public String toString() {
        return "TopTeam{" +
                "teamId='" + teamId + '\'' +
                ", createTime=" + createTime +
                ", teamName='" + teamName + '\'' +
                '}';
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public String getTeamId() {
        return teamId;
    }

    public void setTeamId(String teamId) {
        this.teamId = teamId;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public boolean equals(Object obj) {
        if (obj instanceof TopTeam) {
            TopTeam u = (TopTeam) obj;
            return this.teamId.equals(u.teamId)
                    && this.teamName.equals(teamName) && this.createTime == u.getCreateTime();
        }
        return super.equals(obj);
    }
}
